package com.test;

import com.entity.Course;
import com.teacher.Teacher;
import com.student.Student;

public class StudentCourseSystemTest {
    public static void main(String[] args) {
        // 创建课程
        Course c1 = new Course(1001, "Java程序设计", "实验楼302", "周一上午1-2节");

        // 教师开课
        Teacher t1 = new Teacher(2001, "张老师", "男");
        t1.openCourse(c1);
        t1.printInfo();

        // 学生选课、退课、查课表
        Student s1 = new Student(3001, "李四", "女");
        s1.selectCourse(c1);
        s1.dropCourse();
        s1.printInfo();

        Student s2 = new Student(3002, "王五", "男");
        s2.selectCourse(c1);
        s2.printInfo();
    }
}